package com.cgy.utils.spider.template;

import lombok.Getter;
import lombok.Setter;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlValue;

/**
 * 字段
 * @author CHTK
 */
@Getter
@Setter
public class Field {

    @XmlAttribute
    private String name;
    @XmlAttribute
    private String type;
    @XmlValue
    private String regex;
    @XmlAttribute
    private String download;

    public String getName() {
        return name;
    }

    @XmlTransient
    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }
    @XmlTransient
    public void setType(String type) {
        this.type = type;
    }

    public String getRegex() {
        return regex;
    }
    @XmlTransient
    public void setRegex(String regex) {
        this.regex = regex;
    }

    public String getDownload() {
        return download;
    }

    @XmlTransient
    public void setDownload(String download) {
        this.download = download;
    }
}
